<?php

declare(strict_types=1);

namespace App\System\Service\Model;


use Haozing\FastCore\Model\Model;

/**
 * @property int $id 主键
 * @property string $name 租户名称
 * @property string $code 租户唯一编码，可用作内部标识符
 * @property string $description 租户描述
 * @property int $status 状态 (1正常 2停用)
 * @property int $sort 排序
 * @property int $admin_id 管理者ID
 * @property string $plan 订阅计划
 * @property string $billing_info 计费信息
 * @property string $custom_data 自定义数据字段，用于存储租户特定的配置信息
 * @property int $created_by 创建者
 * @property int $updated_by 更新者
 * @property \Carbon\Carbon $created_at 创建时间
 * @property \Carbon\Carbon $updated_at 更新时间
 * @property string $deleted_at 删除时间
 * @property string $remark 备注
 */
class HeiTenant extends Model
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'hei_tenant';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'name', 'code', 'description', 'status', 'sort', 'admin_id', 'plan', 'billing_info', 'custom_data', 'created_by', 'updated_by', 'created_at', 'updated_at', 'deleted_at', 'remark'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'status' => 'integer', 'sort' => 'integer', 'admin_id' => 'integer', 'created_by' => 'integer', 'updated_by' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];

}
